<template>
  <div>
    <button @click="sendBro">发送给弟弟数据</button>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import emitter from "@/utils/emitter";
function sendBro() {
  emitter.emit("send-toy", "我是来自哥哥给的玩具");
}
</script>

<style scoped></style>
